package com.xxl.job.admin;

import com.xxl.job.admin.condition.DevApplicationCondition;
import com.xxl.job.admin.util.EnvUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Conditional;

/**
 * @author xuxueli 2018-10-28 00:38:13
 */
@Conditional(DevApplicationCondition.class)
@SpringBootApplication(scanBasePackages = {
		"com.xxl",
})
public class XxlJobDevApplication {

	public static void main(String[] args) {
		EnvUtil.setProfile("dev");
		EnvUtil.ifApplication = true;
		args = new String[]{
				"--spring.profiles.active=dev",
				"--spring.config.location=classpath:/",
		};

		SpringApplication.run(XxlJobDevApplication.class, args);
	}

}